   <?php
    include_once("../untils/conn.php");
    $type = "web_config";
    $sql = "SELECT * FROM foundation WHERE type='$type'";
    $data = mysqli_query($con, $sql);
    $result = mysqli_fetch_assoc($data);
    
    $site_name = $result['site_name'];
    $site_seo = $result['site_seo'];
    $site_key = $result['site_key'];
    $site_ms = $result['site_ms'];
    $light_logo = $result['light_logo'];
    $dark_logo = $result['dark_logo'];
    $site_icp =$result['site_icp'];
    

    ?>

<html lang="cn" >

<head>

    <!-- META DATA -->
    <meta charset="UTF-8">
    <meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=0'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="<?php echo $site_seo?>">
    <meta name="author" content="GZKING">
    <meta name="keywords"
        content="<?php echo $site_key?>">

    <!-- FAVICON -->
    <link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico">

    <!-- TITLE -->
    <title><?php echo $site_name?> -代理数据管理平台</title>

    <!-- BOOTSTRAP CSS -->
    <link id="style" href="./assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- STYLE CSS -->
     <link href="./assets/css/style.css" rel="stylesheet">

	<!-- Plugins CSS -->
    <link href="./assets/css/plugins.css" rel="stylesheet">

    <!--- FONT-ICONS CSS -->
    <link href="./assets/css/icons.css" rel="stylesheet">
    
    <!-- INTERNAL Switcher css -->
    <link href="./assets/switcher/css/switcher.css" rel="stylesheet">
    <link href="./assets/switcher/demo.css" rel="stylesheet">
    
</head>

<body class="app sidebar-mini ltr light-mode">


    <!-- GLOBAL-LOADER -->
    <!--<div id="global-loader">-->
    <!--    <img src="./assets/images/loader.svg" class="loader-img" alt="Loader">-->
    <!--</div>-->
    <!-- /GLOBAL-LOADER -->

    <!-- PAGE -->
    <div class="page">
        <div class="page-main">

            <!-- app-Header -->
            <div class="app-header header sticky">
                <div class="container-fluid main-container">
                    <div class="d-flex">
                        <a aria-label="Hide Sidebar" class="app-sidebar__toggle" data-bs-toggle="sidebar" href="javascript:void(0)"></a>
                        <!-- sidebar-toggle-->
                        <a class="logo-horizontal " href="index.php">
                            <img src="<?php echo $dark_logo?>" class="header-brand-img desktop-logo" alt="<?php echo $site_name?>">
                            <img src="<?php echo $light_logo?>" class="header-brand-img light-logo1"
                                alt="<?php echo $site_name?>">
                        </a>
                        <!-- LOGO -->
                       
                        <div class="d-flex order-lg-2 ms-auto header-right-icons">
                            <!-- SEARCH -->
                            <button class="navbar-toggler navresponsive-toggler d-lg-none ms-auto" type="button"
                                data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent-4"
                                aria-controls="navbarSupportedContent-4" aria-expanded="false"
                                aria-label="Toggle navigation">
                                <span class="navbar-toggler-icon fe fe-more-vertical"></span>
                            </button>
                            <div class="navbar navbar-collapse responsive-navbar p-0">
                                <div class="collapse navbar-collapse" id="navbarSupportedContent-4">
                                    <div class="d-flex order-lg-2">
                                        <div class="dropdown d-lg-none d-flex">
                                            <a href="javascript:void(0)" class="nav-link icon" data-bs-toggle="dropdown">
                                                <i class="fe fe-search"></i>
                                            </a>
                                            <div class="dropdown-menu header-search dropdown-menu-start">
                                                <div class="input-group w-100 p-2">
                                                    <input type="text" class="form-control" placeholder="Search....">
                                                    <div class="input-group-text btn btn-primary">
                                                        <i class="fa fa-search" aria-hidden="true"></i>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                       
                                        <!-- COUNTRY -->
                                        <div class="d-flex">
                                            <a class="nav-link icon theme-layout nav-link-bg layout-setting">
                                                <span class="dark-layout"><i class="fe fe-moon"></i></span>
                                                <span class="light-layout"><i class="fe fe-sun"></i></span>
                                            </a>
                                        </div>
                                        <!-- CART -->
                                        <div class="dropdown d-flex">
                                            <a class="nav-link icon full-screen-link nav-link-bg">
                                                <i class="fe fe-minimize fullscreen-button"></i>
                                            </a>
                                        </div>
                                        <!-- FULL-SCREEN -->
                                        <div class="dropdown  d-flex notifications">
                                            <a class="nav-link icon" data-bs-toggle="dropdown"><i
                                                    class="fe fe-bell"></i><span class=" pulse"></span>
                                            </a>
                                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
                                                <div class="drop-heading border-bottom">
                                                    <div class="d-flex">
                                                        <h6 class="mt-1 mb-0 fs-16 fw-semibold text-dark">通知
                                                        </h6>
                                                    </div>
                                                </div>
                                                <div class="">
                                                    <a class="dropdown-item d-flex" href="">
                                                        <div class="me-3 notifyimg  bg-primary brround box-shadow-primary">
                                                            <i class="fe fe-bell"></i>
                                                        </div>
                                                        <div class="mt-1 wd-80p">
                                                            <h5 class="notification-label mb-1">系统通知
                                                            </h5>
                                                            <span class="notification-subtext">一天前</span>
                                                        </div>
                                                    </a>
                                                    
                                                </div>
                                               
                                                
                                            </div>
                                        </div>
                                      
                                        <div class="dropdown d-flex header-settings">
                                            <a href="javascript:void(0);" class="nav-link icon"
                                                data-bs-toggle="sidebar-right" data-target=".sidebar-right">
                                                <i class="fe fe-align-right"></i>
                                            </a>
                                        </div>
                                        <!-- SIDE-MENU -->
                                        <div class="dropdown d-flex profile-1">
                                            <a href="javascript:void(0)" data-bs-toggle="dropdown" class="nav-link leading-none d-flex">
                                                <img   src="https://ym.junes.cn/wp-content/uploads/2023/02/User-01a.png" alt="profile-user"
                                                    class="avatar  profile-user brround cover-image">
                                            </a>
                                            <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
                                                <div class="drop-heading">
                                                    <div class="text-center">
                                                        <h5 class="text-dark mb-0 fs-14 fw-semibold" id="account">用户名</h5>
                                                        <small class="text-muted" >你好！</small>
                                                        <small class="text-muted" id="names"></small>
                                                    </div>
                                                </div>
                                                <div class="dropdown-divider m-0"></div>
                                                <a class="dropdown-item" href="profile.php">
                                                    <i class="dropdown-icon fe fe-user"></i> 个人信息
                                               </a>
                                                <a class="dropdown-item" href="common/logout.php">
                                                    <i class="dropdown-icon fe fe-alert-circle"></i> 退出登录
                                                </a>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /app-Header -->
          